/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.restaurant.domain;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author root
 */
@Entity
@Table(name = "menusize")
@XmlRootElement(name = "menusize")
@NamedQueries({
    @NamedQuery(name = "Menusize.findAll", query = "SELECT m FROM Menusize m"),
    @NamedQuery(name = "Menusize.findByMenusizeID", query = "SELECT m FROM Menusize m WHERE m.menusizeID = :menusizeID"),
    @NamedQuery(name = "Menusize.findBySizename", query = "SELECT m FROM Menusize m WHERE m.sizename = :sizename"),
    @NamedQuery(name = "Menusize.findByDescription", query = "SELECT m FROM Menusize m WHERE m.description = :description"),
    @NamedQuery(name = "Menusize.findByIsdeleted", query = "SELECT m FROM Menusize m WHERE m.isdeleted = :isdeleted")})
public class Menusize implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "MenusizeID")
    private Long menusizeID;
    @Column(name = "sizename")
    private String sizename;
    @Column(name = "description")
    private String description;
    @Column(name = "isdeleted")
    private Boolean isdeleted;
    
    public Menusize() {
    }

    public Menusize(Long menusizeID) {
        this.menusizeID = menusizeID;
    }

    public Long getMenusizeID() {
        return menusizeID;
    }

    public void setMenusizeID(Long menusizeID) {
        this.menusizeID = menusizeID;
    }

    public String getSizename() {
        return sizename;
    }

    public void setSizename(String sizename) {
        this.sizename = sizename;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getIsdeleted() {
        return isdeleted;
    }

    public void setIsdeleted(Boolean isdeleted) {
        this.isdeleted = isdeleted;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (menusizeID != null ? menusizeID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Menusize)) {
            return false;
        }
        Menusize other = (Menusize) object;
        if ((this.menusizeID == null && other.menusizeID != null) || (this.menusizeID != null && !this.menusizeID.equals(other.menusizeID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.restaurant.domain.Menusize[menusizeID=" + menusizeID + "]";
    }

}
